<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				mccNo : {	required : true	},
mccType : {	required : true	},
mccCode : {	required : true	},
mccName : {	required : true	},
mccPercent : {	required : true	},
mccState : {	required : true	},
mccDate : {	required : true	},
mccRemark : {	required : false	}
			},
			errorPlacement : function(error, element) {
				element.css("border-color","#1c3e57");
			},
		});
	});
</script>
</head>
<body>
 	<div class="easyui-panel" title="编辑面板" style="width:100%;" data-options="fit:true">
	<form id="sform" action="mcc_save.html" method="post" enctype="multipart/form-data">
		<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr><td height="30" align="right">编号 : </td><td><input type="text" placeholder="编号" name="mccNo" id="mccNo" value="<s:property value="mccBean.mccNo"/>"/></td><td>编号</td></tr>
<tr><td height="30" align="right">mcc类别 : </td><td><input type="text" placeholder="mcc类别" name="mccType" id="mccType" value="<s:property value="mccBean.mccType"/>"/></td><td>mcc类别</td></tr>
<tr><td height="30" align="right">mcc码 : </td><td><input type="text" placeholder="mcc码" name="mccCode" id="mccCode" value="<s:property value="mccBean.mccCode"/>"/></td><td>mcc码</td></tr>
<tr><td height="30" align="right">名称 : </td><td><input type="text" placeholder="名称" name="mccName" id="mccName" value="<s:property value="mccBean.mccName"/>"/></td><td>名称</td></tr>
<tr><td height="30" align="right">基准费率 : </td><td><input type="text" placeholder="基准费率" name="mccPercent" id="mccPercent" value="<s:property value="mccBean.mccPercent"/>"/></td><td>基准费率</td></tr>
<tr><td height="30" align="right">是否可用 : </td><td><s:radio id="mccState" name="mccState" list="#{'0':'无效','1':'有效'}"  value="mccBean.mccState"></s:radio></td><td>是否可用</td></tr>
<tr><td height="30" align="right">日期 : </td><td><input type="text" placeholder="日期" name="mccDate" id="mccDate" value="<s:if test="mccBean.mccDate!=null"><s:text name="global.format.date"><s:param value="mccBean.mccDate"/></s:text></s:if>" onclick="WdatePicker();" /></td><td>日期</td></tr>
<tr><td height="30" align="right">备注 : </td><td><input type="text" placeholder="备注" name="mccRemark" id="mccRemark" value="<s:property value="mccBean.mccRemark"/>"/></td><td>备注</td></tr>


				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
	</form>
    </div>
</body>
</html>

